//
//  ChatViewController.m
//  FWeChat
//
//  Created by iSolar on 2017/10/24.
//  Copyright © 2017年 NOOrganization. All rights reserved.
//

#import "ChatViewController.h"

@interface ChatViewController ()<UITextFieldDelegate>

/**  显示选择的时间  **/
@property (nonatomic, strong) UILabel *dateLabel;

@end

@implementation ChatViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
     UILabel *timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 40, kWidth - 20, 40)];
    timeLabel.font = Font(15);
    timeLabel.backgroundColor = [UIColor colorWithHexString:@"00c74e"];
    timeLabel.textAlignment = NSTextAlignmentCenter;
    timeLabel.textColor = [UIColor whiteColor];
    _dateLabel = timeLabel;
    [self.view addSubview:timeLabel];

    NSArray *titleArr = @[@"年月日",@"年月日周",@"年月日周时分秒",@"日历"];
    for (int i = 0; i < titleArr.count; i ++) {
        UIButton *dateBtn = [[UIButton alloc] initWithFrame:CGRectMake(kWidth/3 - 20, YH(timeLabel) + 50 + i * (40 + 30), kWidth/3 + 40, 40)];
        [self.view addSubview:dateBtn];
        [dateBtn setTitle:titleArr[i] forState:UIControlStateNormal];
        dateBtn.titleLabel.font = Font(15);
        [dateBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [dateBtn setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithHexString:@"006fff"]] forState:UIControlStateNormal];
        dateBtn.tag = i + 10;
    }
    
}

- (void)selectedDate:(UIButton *)btn {
    
    

}

@end
